const fs = require('fs')
let url = './txt/1.txt';

const path = require('path')
url = path.join(__dirname, 'txt', '1.txt')
console.log(url);

fs.readFile(url, 'utf8', (err, data) => {
    if (err) {
        return console.log(err.message);
    }
    console.log(data);
})